package com.css.bjdt_report.executive;

import com.css.bjdt_report.cell.entity.Cell;
import com.css.bjdt_report.executive.report.ReportSession;

public class QuoteExecutor extends DefaultExecutor {

	@Override
	public String execute(Cell cell, ReportSession session) {
		String startTime = (String) session.get(ReportSession.REPORT_CACHE, "startTime");
		String endTime = (String) session.get(ReportSession.REPORT_CACHE, "endTime");
		String startEndTime = startTime + "-" + endTime;
		String fullName = (String) session.get(ReportSession.REPORT_CACHE, "fullName");
		String relMan = (String) session.get(ReportSession.REPORT_CACHE, "relMan");
		switch (cell.getQuoteType()) {
		case "3":
			return startTime;
		case "2":
			return endTime;
		case "1":
			return fullName;
		case "5":
			return relMan;
		case "4":
			return startEndTime;
		default:
			return "";
		}
	}

}
